package com.yy.xshell.process.resultHandler;

import com.yy.xshell.core.ShellContext;
import com.yy.xshell.process.Handler;

/**
 * @author wxy
 * @version 1.0
 * @date 2024/8/23 15:42
 */
public class RemoveEmpty extends Handler<ShellContext> {
    @Override
    public ShellContext handler(ShellContext result) {
        String msg = result.getMsg();
        result.setMsg(msg.replaceAll(" ", ""));
        return result;
    }

    @Override
    public boolean accept(ShellContext result) {
        return false;
    }
}
